package com.cff.mina.skt;

import org.apache.mina.core.session.IoSession;
import org.apache.mina.filter.codec.ProtocolCodecFactory;
import org.apache.mina.filter.codec.ProtocolDecoder;
import org.apache.mina.filter.codec.ProtocolEncoder;

public class MsgCodecFactory implements ProtocolCodecFactory {

public MsgCodecFactory(){
		
	}

	public ProtocolDecoder getDecoder(IoSession ioSession) throws Exception {
		return new MsgRequestDecoder(2);
	}

	public ProtocolEncoder getEncoder(IoSession ioSession) throws Exception {
		return new MsgResponseEncoder(2);
	}

}
